package com.sumer.brain.common.enums;

import lombok.Getter;

@Getter
public enum HttpStatus {
    OK(200, "请求成功"),
    UNAUTHORIZED(401, "未认证"),
    FORBIDDEN(403, "未授权"),
    FAIL(500, "服务器内部错误");

    private final int code;

    private final String msg;

    HttpStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
